package com.imagecollector.mapper;

import com.imagecollector.domain.entity.TaskReceiverRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 任务接受记录表 Mapper 接口
 * </p>
 *
 * @author wrf
 * @since 2024-07-31
 */
public interface TaskReceiverRecordMapper extends BaseMapper<TaskReceiverRecord> {

    // 查询接受任务中已过期列表
    List<TaskReceiverRecord> expirList(@Param("userId") Integer userId, @Param("status") int status);

    // 提交任务时查看该任务是否获取
    TaskReceiverRecord expiredTask(@Param("id") Integer id, @Param("userId") Integer userId);
}
